package parser;

/**
 * Represents an exceptional situation specific to this project.
 * 
 * @author Robert C. Duvall
 */
@SuppressWarnings("serial")
public class ParserException extends RuntimeException
{
    

	// BUGBUG: should be extendible, i.e., get message text from file 
    public static ParserException BAD_TOKEN =
        new ParserException("unrecognized input");

    public static ParserException BAD_ARGUMENTS =
        new ParserException("not enough arguments");

    public static ParserException BAD_SYNTAX =
        new ParserException("ill-formatted expression");
    
    public static ParserException BAD_VARIABLE_ASSIGNMENT =
        new ParserException("Error in variable assignment");
    
    public static ParserException BAD_HISTORY_QUERY =
        new ParserException("Error in the history query");
    
    public static ParserException NO_INPUT = new ParserException("The parser could find no user input");



    /**
     * Create exception with given message
     * 
     * @param message explanation of problem
     */
    public ParserException (String message)
    {
        super(message);
    }
}
